import request from '@/router/axios';
import { baseUrl } from '@/config/env';

export const readSystemEmailConfigByPage = (param) => request({
    url: baseUrl + '/emailConfig/read/page',
    method: 'post',
    data:param
});

export const addSystemEmailConfig = (data) => request({
    url: baseUrl + '/emailConfig/save',
    method: 'post',
    data:data
})

export const editSystemEmailConfig = (data) => request({
    url: baseUrl + '/emailConfig/save',
    method: 'post',
    data:data
})

export const delSystemEmailConfig = (id) => request({
    url: baseUrl + '/emailConfig/delete',
    method: 'post',
    data: { id: id }
})
